<?php

namespace app\common\model;


use think\Model;

class SystemLog extends Model
{
    public function addLog(){
        $data = array(
            "user_id" => session("admin_id"),
            "action" => $_SERVER['REQUEST_URI'],
            "data" => serialize($_POST),
            "session" => serialize($_SESSION),
            "log_time" => getTime()
        );
        $this->insert($data);
    }

}